package com.totem.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.totem.base.mybatis.model.AbstractEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = true)
@Data
@Builder
@TableName("t_wallet_journal")
public class TWalletJournal extends AbstractEntity {
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    @TableField(value="customer_id")
    private Long customerId;
    @TableField(value="order_id")
    private Long orderId;
    @TableField(value="journal_type")
    private String journalType;
    @TableField(value="before_balance")
    private BigDecimal beforeBalance;
    @TableField(value="amount")
    private BigDecimal amount;
    @TableField(value="charges")
    private BigDecimal charges;
    @TableField(value="after_balance")
    private BigDecimal afterBalance;
    @TableField(value="currency")
    private String currency;
    @TableField(value="direction")
    private String direction;
    @TableField(value="journal_state")
    private String journalState;
    @TableField(value="remark")
    private String remark;
}
